run:
	@docker compose up -d
	@echo "Nexus is running at http://localhost:8081"
volume-export:
	@echo "Exporting volume..."
	@docker run --rm \
		-v nexus_data:/nexus-data \
		-v $(PWD):/backup \
		alpine \
		tar -czf /backup/nexus-data.tar.gz -C /nexus-data . \
	&& echo "Volume exported to nexus-data.tar.gz"

volume-import:
	@echo "Importing volume..."
	@docker run --rm \
		-v nexus_data:/nexus-data \
		-v $(PWD):/backup \
		alpine \
		tar -xzf /backup/nexus-data.tar.gz -C /nexus-data \
	&& echo "Volume imported from nexus-data.tar.gz"


ps:
	@docker compose ps -a
